test-concurrency: Use Python 3 syntax for octal
authorSimon McVittie <smcv@debian.org>
Wed, 17 Jan 2018 14:25:26 +0000 (14:25 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 22 Feb 2018 19:24:47 +0000 (19:24 +0000)
This also works in Python 2.7, and is a little clearer.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #1457
Approved by: cgwalters

tests/test-concurrency.py

index bdcc1d9196464b02af7915517408367137405b28..6fade24f81fd6f756421cb28c2aaee6cd13b976c 100755 (executable)
@@ -33,7 +33,7 @@ def fatal(msg):
 # different files with different checksums.
 def mktree(dname, serial=0):
     print('Creating tree', dname, file=sys.stderr)
-    os.mkdir(dname, 0755)
+    os.mkdir(dname, 0o755)
     for v in xrange(20):
         with open('{}/{}'.format(dname, v), 'w') as f:
             f.write('{} {} {}\n'.format(dname, serial, v))